package com.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.entity.Brand;
import com.leyou.item.dto.BrandDTO;
import com.leyou.dto.PageDTO;

import java.util.List;

public interface BrandService extends IService<Brand> {
    List<BrandDTO> getBrandsByBrandIds(List<Long> brandIds);

    List<BrandDTO> getBrandsByCategoryId(Long cid);

    PageDTO<BrandDTO> getBrandPage(String key, String currentPage, String pageSize);

    BrandDTO getBrandByBrandId(Long brandId);

    void addBrand(Brand brand);

    void updateBrand(Brand brand);
}
